#include<iostream>
#include<string>
using namespace std;
int main()
{
     string s1("juice and rice");//迭代模式

    for(decltype(s1.size())  index=0;index !=s1.size() && !isspace(s1[index]); ++index)//没到数组最后一个，且不是空格
            s1[index]=toupper(s1[index]);
   cout<<s1<<endl;
}